home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
New Star Software Collection
/
NSS_Collection.iso
/
3-170 dbase 10 for windows
/
1.ima
/
SAMPLES.PAK
/
FOCUS2.PRG
< prev
next >
Wrap
Text File
|
1993-07-26
|
2KB
|
44 lines
*******************************************************************************
* PROGRAM: Focus2.prg
*
* WRITTEN BY: Borland Late Night Crew
*
* DATE: 7/93
*
* UPDATED:
*
* VERSION: Alpha α
*
* DESCRIPTION: This program defines a class Mywindow, which is derived from
* Bladerunner's Window class. This derived class is defined
* with 3 event handlers -- OnGotFocus,OnLostFocus
* and OnMouseDown. Two instances of this class are declared,
* and each one brings up a window. As you move between the
* two windows, you can clearly see the event handling functions
* at work. Changing focus from one window to another changes
* the caption for both windows, indicating which has focus.
* You can also see the effect by the changing caption on the
* pushbutton in each window. It displays the number of times
* the current window has had the focus. Each time you click
* In the window, the clickcount for that window is incremented.
*
* PARAMETERS: None
*
* CALLS: None
*
* USAGE: DO Focus2
*
*
*
*******************************************************************************
* Must set procedure to this file because you exit the program after
* the 2 instantiations of MyWindow. And Bladerunner must know about the
* event handling functions when the main program finishes. It is basically
* waiting for an event to occur.
set procedure to sampproc
w1 = new MyWindow() && Create 2 instances of MyWindow
w2 = new MyWindow()
****************************** End of Focus2.prg ******************************